package com.ls.fw.search.solrj.support.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


/**
 * Annotation used for suggest/autocomplete services.
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface SuggestMapping {

  /**
   * @return field name used for support partial match
   */
  String field();

  /**
   * @return field name used for supporting phrase queries
   */
  String phraseQueryField();

}
